#This program checks for mouse activity every 60 seconds if the mouse activity is between 0 - 10 it stops the current track
import dbus
import time
import pygame
from pygame import *
#PYGAME
pygame.init()
event = pygame.event.get()
##################################################
#DBUS
system_bus = dbus.SystemBus()
session_bus = dbus.SessionBus()

proxy_obj = session_bus.get_object('org.gnome.Rhythmbox', '/org/gnome/Rhythmbox/Player', "/org/gnome/Rhythmbox/Shell")
player = dbus.Interface(proxy_obj, 'org.gnome.Rhythmbox.Player')
shell = dbus.Interface(proxy_obj, "org.gnome.Rhythmbox.Shell")
########################################################################################
#debug
print event
print player.getPlayingUri()
print shell.getSongProperties()

###########
#main




